﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using WindowsFormsTest.BusiManager;

namespace WindowsFormsTest.Purchase
{
    public partial class PurchaseOrderAdd : MainTabUserContorl
    {
        public PurchaseOrderAdd()
        {
            InitializeComponent();
        }

        private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            PurchaseOrderProductAdd a = new PurchaseOrderProductAdd();
            a.ShowDialog();
        }
        public void setModel(PanelModel modelType)
        {
            switch (modelType)
            {
                case PanelModel.ONLY_CONTROL:
                    {
                        this.splitContainer1.Panel1Collapsed = true;

                        break;
                    }
                default:
                    {
                        break;
                    }
            }
        }

        private void button7_Click(object sender, EventArgs e)
        {
            ProviderSearchForm s = new ProviderSearchForm();
            s.ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void button9_Click(object sender, EventArgs e)
        {

        }

        private void label12_Click(object sender, EventArgs e)
        {

        }
    }
}
